<template>
    <view class="c-container">
        <view class="c-row-head">
            <view class="c-row-title">推广活动</view>
        </view>
        <view class="c-row">
            <view class="c-row-col">
                <view class="col-title">执行公司</view>
                <view class="col-text">{{ dictionary.getPickerTitle('companyList', activities.company_id)}}</view>
            </view>
        </view>
        <view class="c-row">
            <view class="c-row-col">
                <view class="col-title">活动场地</view>
                <view class="col-text">{{ activities.position }}</view>
            </view>
        </view>
        <view class="c-row">
            <view class="c-row-col">
                <view class="col-title">活动开始</view>
                <view class="col-text">{{ activities.start_date }}</view>
            </view>
        </view>
        <view class="c-row">
            <view class="c-row-col">
                <view class="col-title">活动结束</view>
                <view class="col-text">{{ activities.end_date }}</view>
            </view>
        </view>
    </view>
</template>

<script>
import dictionary from '@/utils/dictionary.js';
export default {
    name: 'cDetail',
    props: {
        activities: {
            type: Object,
            default() {
                return {};
            }
        },
    },
    data() {
        return {};
    },
    beforeMount() {
        this.dictionary = dictionary;
    },
    methods: {

    }
};
</script>

<style lang="less">
@import url("../common.less");
.c-row-title {
    border-bottom: 3px solid #007aff;
    color: #007aff;
    display: inline-block;
    margin-bottom: 10px;
}
.c-container .van-tag {
    margin-right: 5px !important;
}
</style>
